package models

//json返回主体
type JsonBody struct {
	Code    int64       `json:"code"`
	Data    interface{} `json:"data"`
	Message string      `json:"message"`
	Err     error       `json:"err"`
	Page    interface{} `json:"page"`
}

//分页
type PageBody struct {
	//总页数
	PageCount float64
	//设置每页个数
	PageSetNum int64
	//当前页
	Page int64
	//总个数
	Count int64
}

//错误码
var (
	CODE1000 int64  = 1000
	MSG1000  string = "成功"

	CODE1001 int64  = 1001
	MSG1001  string = "注册失败"

	CODE1002 int64  = 1002
	MSG1002  string = "密码不一样，请再次确认"

	CODE1003 int64  = 1003
	MSG1003  string = "该手机号码已被注册"

	CODE1004 int64  = 1004
	MSG1004  string = "账号或密码错误"

	CODE1005 int64  = 1005
	MSG1005  string = "暂无数据"

	CODE1006 int64  = 1006
	MSG1006  string = "系统出错"

	CODE1007 int64  = 1007
	MSG1007  string = "旧密码不存在，请重新输入"

	CODE1008 int64  = 1008
	MSG1008  string = "该商品不存在"

	CODE1009 int64  = 1009
	MSG1009  string = "操作失败，该数据已存在"
)
